import requests,json

def TuLing(key,text):
    TL_url = 'http://openapi.turingapi.com/openapi/api/v2'
    params = {
        "reqType":0,
        "perception": {
            "inputText": {
                "text": text
            },
        },
        "userInfo": {
            "apiKey": key,
            "userId": "000001"
        }
    }
    res = requests.post(TL_url,data = json.dumps(params))
    return res.json()['results'][0]['values']['text']